<template>
  home
  {{ message }}
</template>
  
<script lang='ts' setup>
// import axios from 'axios'
import axios from '@/service/request'

const message = ref<any>('')

const getList = () => {
  axios.get('/jsonApi/posts').then((res:any) => {
    console.log(res.data)
  })
}
// getList()

const getL1 = () => {
  // axios.get('http://127.0.0.1:8000/getHNull').then(res => {
  axios.get('http://127.0.0.1:8000/getDepartment').then((res:any) => {
    console.log(res.data)
    message.value = res.data.data
  })
}
// getL1()

const getListCustome = () => {
  // axios.get('http://127.0.0.1:8000/getHNull').then(res => {
  axios.get('http://127.0.0.1:8000/sales/getCustome/').then((res:any) => {
    console.log(res.data)
    message.value = res.data.data
  })
}
getListCustome()


</script>
  
<style scoped lang='less'>
  
</style>
../../service/request